package com.free.chat.entity.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 论坛帖子实体
 *
 * @Author: 朝花不迟暮
 * @Date: 2022/11/26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("topic")
public class Topic {

    @TableId("id")
    private Long id;

    private String title;

    private String content;

    private Date releaseTime;

    private Long userId;

    private Integer commentCount;

    private Integer collectCount;

    private Integer viewCount;

    /**
     * 0否   1是
     */
    private Boolean top;

    /**
     * 0否   1是
     */
    private Boolean deleted;

    private Date createTime;

    private String createUser;

    private Date updateTime;

    private Date updateUser;
}
